<template>
   <div style="width:100%;height:100%;overflow: hidden;">
    <iframe ref="iframe1" style="width:100%;height:100%;border:none;"></iframe>
   </div>
   
</template>

<script lang="ts">
import { ref, watch,reactive,onMounted,h,onBeforeUnmount } from 'vue'
import { layer } from '@layui/layer-vue'
import MyHttp from "../../library/MyHttp";  
import MyWin from "../../library/MyWin"; 
import MyPage from "../../library/MyPage"; 
import {MyExcel} from "../../library/MyExcel"; 
import {MySimpleExport,TableColumn} from "../../library/MySimpleExport"; 
import MyAuth from "../../library/MyAuth"; 


import add from "../htpage/add.vue";  
 


export default {
  props:{
       url :String
   }, 
   setup(prop:any, context:any) {

    const myWin=ref<any>(null);
    const iframe1=ref<any>(null);

    onMounted(() =>{  
      myWin.value=new MyWin();
      iframe1.value.src=prop.url;
    });
    onBeforeUnmount(()=>{

    })
    return {
      myWin,
      iframe1
    }
  }
}
</script>
